﻿namespace Communication.Lib.Core
{
    public interface IProtocolable<T> where T : BaseInfo
    {
        byte[] EncodeBytes(T info);

        T DecodeData();

        void AddBytes(byte[] bytes);
    }
}